package com.zisu.aradvertising.repository;


import com.zisu.aradvertising.pojo.Sign;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DaoSign extends JpaRepository<Sign,Integer> {
    //根据Aid找Sign
    List<Sign> findAllByAid(int aid);
    //根据Cid找Sign
    List<Sign> findAllByCid(int cid);
    //根据Coid找Aid
    Sign findByCoid(int coid);

}

